#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;

void DisplayNums(vector<int>& dynArray)
{
    for_each(dynArray.begin(), dynArray.end(), [](int Element) {cout << Element << endl; });
}

int main()
{
    vector<int> myNums;
    myNums.push_back(11);
    myNums.push_back(-22);
    myNums.push_back(33);
    myNums.push_back(-44);

    DisplayNums(myNums);

    sort(myNums.begin(), myNums.end(), [](int Num1, int Num2) {return (Num2 < Num1); });

    DisplayNums(myNums);

    return 0;
}